//
//  PromotionActivityModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/7.
//

import UIKit
import ObjectMapper

class PromotionActivityModel: Mappable {
    var code: String?
    var msg: String?
    var data: [ActivityListModel]?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class ActivityListModel:  Mappable {
    
    var shareActivityBlock: (()->Void)?//分享活动
    
    var id: NSInteger?
    var name: String?
    var couponType: NSInteger?//优惠券类型：0商城满减券，1礼品券，2会员积分
    var sendMethod: NSInteger?//发送方式：1立即发送，2定时发送，3按会员生日具体时间赠送(如果是3，则是生日奖赏)
    var validEnd: String?//有效期
    var integral: NSInteger?//分享可获积分
    var sharePopularize: String?//分享可获积分文案
    var useScene: String?//使用场景（多选） 1:商品、2:服务
    
    func mapping(map: Map) {
        id <- map["id"]
        name <- map["name"]
        couponType <- map["couponType"]
        sendMethod <- map["sendMethod"]
        validEnd <- map["validEnd"]
        integral <- map["integral"]
        sharePopularize <- map["sharePopularize"]
        useScene <- map["useScene"]
      
    }
    required init?(map: Map) {
        
    }
}
